<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> 
<%@include file="/common/dev_header.jsp" %>
        <div class="row">
            <div class="col-md-2" style="height:600px;overflow: auto;">
            	<div class="col-md-12">表(点击查看结构)</div>
            	<div class="col-md-12">
            		<table class="table">
            			<tbody>
            				<c:forEach items="${tables }" var="t">
            				<tr>
            					<td>
            						<a style="cursor:pointer;" href="javascript:void(0);" onclick="load_table_info('${t}');">${t }</a>
            					</td>
            				</tr>
            				</c:forEach>
            			</tbody>
            		</table>
            	</div>
            </div>
            <div class="col-md-10" id="table_info">
            	
            </div>
        </div>
        
    	<script>
			function load_table_info(table) {
				$('#table_info').load('${ctx}/dev/tableInfo?table=' + table);
			}    	
    	</script>
    	
    	
<%@include file="/common/dev_footer.jsp" %>